import { notification } from 'antd';

/**
 * 
 * @param {*} title 
 * @desc 通知提示 type默认是成功 共4种类型：success,info,warning,error 
 */

const XxNotification = ({ title = "通知", text = "通知内容", type = "success" }) => {
    notification[type]({
        message: title,
        description: text,
    });
}


export default XxNotification;